<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <%@include file="/view/resource.jsp" %>
  </head>
 <script type="text/javascript">
$("#parampid").ready(function (){
	$.ajax({
		url:urls['msUrl']+"tostSysParaminfo/getroot.do",
		dataType:'json',
		success:function(result){
			var str="<select name='pid' id='selectpid'><option></option>";
			for(var i=0;i<result.total;i++){
				str+="<option value='"+result.data[i].id+"'>"+result.data[i].paName+"("+result.data[i].id+")"+"</option>";
			}
			str+="</select>";
			document.getElementById("parampid").innerHTML=str;
			document.getElementById("datapid").innerHTML=str;
		}
	});
});
 </script> 
  <body class="easyui-layout">
  	 <!-- Search panel start -->
 	 <div class="ui-search-panel" region="north" style="height: 80px;" title="过滤条件" data-options="striped: false,collapsible:false,iconCls:'icon-search',border:false" >   
 	 <form id="searchForm" name="searchForm" action="list.do">
 	 	<input class="hidden" id='search_parentId' name="parentId">
 	 	<p class="ui-fields">
            <label class="ui-label">参数根节点:</label> 
            <span id="parampid"></span>
          	 搜索：<input name="paName" value="">
        </p>
        <a id="btn-search" class="easyui-linkbutton" iconCls="icon-search">查询</a>
      </form>  
     </div> 
     <!--  Search panel end -->
     <!-- DataList  -->
	 <div region="center" border="false" >
     	<table id="data-list" ></table>
     </div>
    
     <!-- Edit Win&From -->
     <div id="edit-win" class="easyui-dialog" title="Edit Menu" data-options="closed:true,iconCls:'icon-save',modal:true"  style="width:500px;height:450px;">  
     	<form id="editForm" class="ui-form" method="post"> 
     	 <!-- 隐藏文本框 -->
     	 <input class="hidden" name="id">
     	 <input class="hidden" name="deleted">
    	 <input class="hidden" name="parentId" id='edit_parentId'>
    	 <div class="ui-edit"> 
	               <div class="ftitle">详细</div>    
		           <div class="fitem">  
		               <label>父节点:</label>  
		                 <span id="datapid"></span>
		           </div>  
		           <div class="fitem">  
		               <label>参数名称:</label>  
		               <input class="easyui-validatebox" type="text" name="paName" data-options="required:true">
		           </div>  
		           <div class="fitem">  
		               <label>参数编码:</label>  
		               <input class="easyui-validatebox" type="text" name="paCode" data-options="required:false">
		           </div>  
		           <div class="fitem">  
		               <label>参数变量:</label>  
		               <input class="easyui-validatebox" type="text" name="paValue" data-options="required:false">
		           </div>  
		           <div class="fitem">  
		               <label>参数排序:</label>  
		               <input class="easyui-validatebox" type="text" name="paOrd" data-options="required:false">
		           </div>  
		           <div class="fitem">  
		               <label>涉及表:</label>  
		               <input class="easyui-validatebox" type="text" name="paTab" data-options="required:false">
		           </div>  
		           <div class="fitem">  
		               <label>参数说明:</label>  
		               <input class="easyui-validatebox" type="text" name="paDesc" data-options="required:false">
		           </div>  
	            </div>

     	</form>
  	 </div>
  <script type="text/javascript" src="<%=basePath%>/osjs/system/TostSysParaminfo.js"></script>
  </body>
</html>